using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BbqFramework.Web.UI;
using BbqFramework.Web;

namespace Website
{
    public partial class _Default : PageBase
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            HyperlinkLogin.Visible = !this.User.Identity.IsAuthenticated;
#if(!DEBUG) //Try to improve performance of MS AJAX
            this.ScriptManager1.ScriptMode = ScriptMode.Release;
            //this.ScriptManager1.LoadScriptsBeforeUI = false;
#endif
            WebHelper.RegisterRoundedCorner(this, "myBox", 20, 20, 20, 20, true, true, "div", "form");
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            this.PrepareToCompressCSS();
            
        }
    }
}
